#!/bin/sh

DIR=`pwd`
OERATION=$1

compile()
{
	cd $DIR; pwd
#	make
	sz *.ko

	cd $DIR/service; pwd
#	make
	sz *.ko

	cd $DIR/servgrp; pwd
#	make 
	sz *.ko

	echo "===Compile!!==>"
}

clean()
{
	cd $DIR; pwd
	make clean

	cd $DIR/service; pwd
	make clean

	cd $DIR/servgrp; pwd
	make clean

	echo "===Clean!!==>"
}

if [ "$OERATION" = "make" ]; then
#	clean
	compile
else
	clean
fi

cd $DIR
